var price_change_approve_cost_min_wave_warn = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"price_change_approve_cost_min_wave_warn"}');

if (!isNull(cost)) {
    var cost_wave_percent_approve_list_map = item_price_or_cost_wave_approve_level(func_price_change_approve_cost_wave_define());
    var gather_all_item_approve_level_for_price_or_cost_warn_res = gather_all_item_approve_level_for_price_or_cost(item_nbr, cost, trait_nbr, store_id,
        store_type, item_store_json, item_dc_json, category_nbr, sub_category_nbr, trait_store, cost_wave_percent_approve_list_map, 'cost',
        item_status, vnpk_qty, db2_vnpk_qty, iva_tax)
    if (!isNull(gather_all_item_approve_level_for_price_or_cost_warn_res.sku_approve_level_approve_cost_by_cat_maxwave_warn)) {
        if (gather_all_item_approve_level_for_price_or_cost_warn_res.sku_approve_level_approve_cost_by_cat_maxwave_warn > 0) {
            price_change_approve_cost_min_wave_warn.CODE = 1;
            price_change_approve_cost_min_wave_warn.ACTION = 'risk';
            price_change_approve_cost_min_wave_warn.MSG = '单位成本涨价幅度[' + parseFloat(gather_all_item_approve_level_for_price_or_cost_warn_res.sku_approve_level_approve_cost_by_cat_maxwave_warn * 100).toFixed(2) + '%]较小，不建议调价';
        } else {
            price_change_approve_cost_min_wave_warn.CODE = 1;
            price_change_approve_cost_min_wave_warn.ACTION = 'risk';
            price_change_approve_cost_min_wave_warn.MSG = '单位成本降价幅度[' + parseFloat(gather_all_item_approve_level_for_price_or_cost_warn_res.sku_approve_level_approve_cost_by_cat_maxwave_warn * 100).toFixed(2) + '%]较小，不建议调价';
        }
    }
}

JSON.stringify(price_change_approve_cost_min_wave_warn);